/**
 * Created by xiaohui on 2017/5/25.
 */
var app = require('http').createServer();
var io = require('socket.io')(app);

app.listen(9192, function () {
	console.log('listening on *:9192');
});

io.on('connection', function (client) {
	console.log("uncle is coming!");
	client.on('message', function (data) {
		console.log(data);
		client.broadcast.emit('control', data);
	});
});
